#include<avr/io.h>
#include<avr/interrupt.h>
#include"avr_lib.h"
#include"Robocar_init.h"
#include"RBC_Ultra.h"


extern u16 US_F_tmp ;
extern u16 US_B_tmp ;


int main(){

	PORT_init();
	Timer0_init();
	US_Recv_Setting();
	
	sei();	
	while(1){
		
		US_Fire_F();
		US_Fire_B();	
		
				
		if(US_F_tmp<20 || US_B_tmp<20  )
			BEEP_ON();
		
		ms_delay(100);
		
		BEEP_OFF();
		
		
	}

	return 0;
}
